import App from './App'
import store from './store'
import Vue from 'vue'
import Loading from '@/components/Loading.vue'
import {
	filterCode
} from '@/utils/dict.js'
import {
	formatSeconds,
	formatDate
} from '@/utils/date.js'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.filter('timeFilter', (str) => str ? str.substr(0, 10) : str)
Vue.filter('timeFormat', formatDate)

Vue.filter('codeFilter', filterCode)
Vue.filter('formatSeconds', formatSeconds)
Vue.component("Loading", Loading)

const app = new Vue({
	...App,
	store
})
app.$mount()
